package com.shiyanlou.upms.system.service.impl;

import com.shiyanlou.upms.system.dao.UpmsOrganizationMapper;
import com.shiyanlou.upms.system.domain.UpmsOrganization;
import com.shiyanlou.upms.system.service.UpmsOrganizationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 机构管理
 */
@Service("upmsOrganizationService")
public class UpmsOrganizationServiceImpl implements UpmsOrganizationService {

    @Autowired
    private UpmsOrganizationMapper upmsOrganizationMapper;


    @Override
    public int deleteByPrimaryKey(Integer organizationId) {
        return upmsOrganizationMapper.deleteByPrimaryKey(organizationId);
    }

    @Override
    public int insert(UpmsOrganization record) {
        return upmsOrganizationMapper.insert(record);
    }

    @Override
    public int insertSelective(UpmsOrganization record) {
        return upmsOrganizationMapper.insertSelective(record);
    }

    @Override
    public UpmsOrganization selectByPrimaryKey(Integer organizationId) {
        return upmsOrganizationMapper.selectByPrimaryKey(organizationId);
    }

    @Override
    public int updateByPrimaryKeySelective(UpmsOrganization record) {
        return upmsOrganizationMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UpmsOrganization record) {
        return upmsOrganizationMapper.updateByPrimaryKey(record);
    }

    @Override
    public int count(Map<String, Object> map) {
        return upmsOrganizationMapper.count(map);
    }

    @Override
    public List<UpmsOrganization> list(Map<String, Object> map) {
        return upmsOrganizationMapper.list(map);
    }

    @Override
    public int batchRemove(Integer[] userIds) {
        return upmsOrganizationMapper.batchRemove(userIds);
    }
}
